import { IListModel } from "@/core";

//  获取列表模型
function getModel(): IListModel {
    return {
        cssName: "",
        aggMode: '',
        caption: '',
        controlType: 'LIST',
        codeName: 'LnternalFuncList',
        entityCodeName: 'IBIZBOOK',
        entityLogicName: '图书',
        name: 'list',
        noSort: false,
        showHeader: true,
        sortDir: 'ASC',
        sortField: 'ibizbookname',
        limit: 10,
        dataImport: {
            codeName: 'DataImport',
            ignoreError: false,
        },
        paging: {
            defaultPageSize: 10
        },
        uIActionGroup: {
            "Edit": {
                caption: "编辑",
                uIActionMode: "SYS",
                disabled: false,
                visible: true,
                actionTag: "Edit",
                noPrivDisplayMode: 2,
                dataAccessAction: "",
                actionTarget: "SINGLEKEY",
                showCaption: true,
                showIcon: true,
                predefinedType: "GRIDVIEW_EDITACTION",
                actionDECodeName: "",

                iconClass: "fa fa-edit"
            },
            "Remove": {
                caption: "删除",
                uIActionMode: "SYS",
                disabled: false,
                visible: true,
                actionTag: "Remove",
                noPrivDisplayMode: 2,
                dataAccessAction: "",
                actionTarget: "MULTIKEY",
                showCaption: true,
                showIcon: true,
                predefinedType: "GRIDVIEW_REMOVEACTION",
                actionDECodeName: "",

                iconClass: "fa fa-remove"
            }
        }
    };
}

export const model = getModel();